feat(core): Add enableTruncation option to Anthropic AI integration#20181
feat(core): Add enableTruncation option to Anthropic AI integration#20181nicohrubec merged 6 commits intodevelopfrom
enableTruncation option to Anthropic AI integration#20181Conversation
This PR adds an `enableTruncation` option to the Anthropic AI integration that allows users to disable input message truncation. It defaults to `true` to preserve existing behavior. Closes: #20136
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Core
Other
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a008245. Configure here.
dev-packages/node-integration-tests/suites/tracing/anthropic/test.ts
Outdated
Show resolved
Hide resolved
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
…ion scenario messagesFromParams wraps string input values into an array, so the expected attribute value is JSON.stringify([longStringInput]), not the raw string.
nicohrubec
left a comment
There was a problem hiding this comment.
I think we should cover a multi-message scenario in the tests here but other than that lgtm

This PR adds an
enableTruncationoption to the Anthropic AI integration that allows users to disable input message truncation. It defaults totrueto preserve existing behavior.Closes: #20136